package com.yuntongxun.ecdemo.rest.models;

import android.content.res.Resources;

import com.google.gson.annotations.SerializedName;
import com.yuntongxun.ecdemo.R;

/**
 * Created by hankers on 16/4/29.
 */
public class UserModel {

    @SerializedName("contact_account")
    private String account;
    private String name;
    private int role;
    private int gender;
    private String age;
    private int status; // 0 - stranger, 1 - requesting as friend, 2 - contact

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getRole() {
        return role;
    }

    public void setRole(int role) {
        this.role = role;
    }

    public int getGender() {
        return gender;
    }

    public String getGenderDesc() {
        switch (gender) {
            case 1:
                return Resources.getSystem().getString(R.string.settings_male);
            case 2:
                return Resources.getSystem().getString(R.string.settings_female);
        }
        return "";
    }

    public void setGender(int gender) {
        this.gender = gender;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public int getStatus() { return this.status; }

    public void setStatus(int status) { this.status = status; }

}
